package com.bwie.parkdemo.adapter;

import android.support.annotation.NonNull;

import com.bwie.parkdemo.BR;
import com.bwie.parkdemo.R;
import com.bwie.parkdemo.mvvm.model.entity.PatrolesEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

public class PatrolesAdapter extends BaseQuickAdapter<Object,BaseViewHolder> {

    public static final int TYPE = 8;

    public PatrolesAdapter() {
        super(R.layout.item_patroles);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, Object item) {
        PatrolesEntity.Values entity = (PatrolesEntity.Values) item;
        helper.getDataBinding().setVariable(BR.entity,entity);
    }
}
